<%@page import="org.apache.commons.logging.LogFactory"%>
<%@page isErrorPage="true" %>
<%@page import="org.apache.commons.logging.Log"%>
<%@ page contentType="text/html;charset=utf-8" language="java" pageEncoding="UTF-8" %>
<%
    // 记入日志
    Log logger = LogFactory.getLog("HTTP 500 Logger");
    Exception ex = (Exception) request.getAttribute("exception");
    if (ex != null) { // spring框架抛出的Exception
        logger.error("ErrorPage Logging", ex);
    } else { // servlet容器抛出的exception
        logger.error("ErrorPage Logging", exception);
    }
%>
<html>
<head>
<title>服务器内部错误</title>
</head>
<BODY  leftmargin='100' topmargin='100' bgproperties='fixed'>
<p align="center">
<img src="<%=request.getContextPath() %>/resources/images/500.gif" ><br/>
<a href="${pageContext.request.contextPath}" target="_top">返回首页</a></p>
</body>
</HTML>
